<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';

onLaunch(() => {
  console.log('App Launch');
});

onShow(() => {
  console.log('App Show');
});

onHide(() => {
  console.log('App Hide');
});
</script>

<style lang="scss">
/* 每个页面公共css */
:root {
  --primary-color: #007aff;
  --primary-color-light: #e6f7ff;
  --background-color: #f0f2f5;
  --card-background-color: #ffffff;
  --text-color-primary: #303133;
  --text-color-secondary: #606266;
  --text-color-placeholder: #909399;
  --border-color: #e4e7ed;
  --success-color: #67c23a;
  --warning-color: #e6a23c;
  --error-color: #f56c6c;
  --info-color: #909399;
}

page {
  background-color: var(--background-color);
  color: var(--text-color-primary);
  font-size: 14px;
}

/* 全局卡片样式 */
.uni-card {
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
}

/* 按钮样式 */
button {
  border-radius: 8px !important;
}

button[type="primary"] {
  background-color: var(--primary-color) !important;
}
</style>